package com.cyl.XmlDemo.entity;

import java.util.Iterator;
import java.util.Vector;

public class StompClient {
	
	private static StompClient instance = new StompClient();
	private Vector<String> stompClient = new Vector<String>();
	
	private StompClient(){
	}
	
	
	public static StompClient getInstance(){
		return instance;
	}


	public Vector<String> getUserList() {
		return stompClient;
	}

	public void put(String uniqueName){
		stompClient.add(uniqueName);
	}
	
	public void remove(String uniqueName){
		stompClient.remove(uniqueName);
	}
	
	public Integer size(){
		return stompClient.size();
	}
	
	public Iterator<String> iterator(){
		return stompClient.iterator();
	}
}
